package com.leen.user.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author 
 * 用户等级记录表
 */
@Table(name="yx_user_level")
@Data
@Entity
@ApiModel(value = "用户等级记录表")
public class YxUserLevel implements Serializable {

    /**
     * 用户等级id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    @ApiModelProperty(value = "用户等级id",example = "0")
    private Integer id;

    /**
     * 用户uid
     */
    @Column(name = "uid")
    @ApiModelProperty(value = "用户uid")
    private Long uid;

    /**
     * 等级vip
     */
    @Column(name = "level_id")
    @ApiModelProperty(value = "等级vip",example = "0")
    private Integer levelId;

    /**
     * 会员等级
     */
    @Column(name = "grade")
    @ApiModelProperty(value = "会员等级",example = "0")
    private Integer grade;

    /**
     * 过期时间
     */
    @Column(name = "valid_time")
    @ApiModelProperty(value = "过期时间",example = "0")
    private Integer validTime;

    /**
     * 是否永久
     */
    @Column(name = "is_forever")
    @ApiModelProperty(value = "是否永久")
    private Byte forever;

    /**
     * 商户id
     */
    @Column(name = "mer_id")
    @ApiModelProperty(value = "商户id",example = "0")
    private Integer merId;

    /**
     * 0:禁止,1:正常
     */
    @Column(name = "status")
    @ApiModelProperty(value = "0:禁止,1:正常")
    private Byte status;

    /**
     * 备注
     */
    @Column(name = "mark")
    @ApiModelProperty(value = "备注")
    private String mark;

    /**
     * 是否已通知
     */
    @Column(name = "remind")
    @ApiModelProperty(value = "是否已通知")
    private Byte remind;

    /**
     * 是否删除,0=未删除,1=删除
     */
    @Column(name = "is_del")
    @ApiModelProperty(value = "是否删除,0=未删除,1=删除")
    private Byte del;

    /**
     * 添加时间
     */
    @Column(name = "create_time")
    @ApiModelProperty(value = "添加时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    @ApiModelProperty(value = "更新时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 享受折扣
     */
    @Column(name = "discount")
    @ApiModelProperty(value = "享受折扣",example = "0")
    private Integer discount;

}